package com.zhuss.enums;

import java.util.List;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/25 14:14
 */
public enum InfoType implements BaseEnum{

    通知公告(10, "通知公告", ""),
    新闻资讯(20, "新闻资讯", ""),
    ;

    Integer key;

    String value;

    String tag;

    InfoType(Integer key, String value, String tag) {
        this.key = key;
        this.value = value;
        this.tag = tag;
    }

    public Boolean sameKey(Integer key) {
        return this.key.equals(key);
    }

    public Integer key() {
        return key;
    }

    public String value() {
        return value;
    }

    public String tag() {
        return tag;
    }

    public String data() {
        return value;
    }

    @Override
    public List<Integer> removeIdList() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Boolean sameValue(String value) {
        return this.value.equals(value);
    }

}
